package jps_s10996_s7175.result;

import jps_s10996_s7175.objects.DBID;
import edu.pjwstk.jps.datastore.IOID;
import edu.pjwstk.jps.result.IReferenceResult;

public class ReferenceResult extends SingleResult implements IReferenceResult {

	private final IOID id;

	public ReferenceResult(IOID oid) {
		this.id = oid;
	}

	@Override
	public IOID getOIDValue() {
		return id;
	}

	@Override
	public String stringme() {
		String res = "i";
		DBID i = (DBID) id;
		res += i.getOID();
		return res;
	}
	
	@Override
	public String toString() {
		return this.getOIDValue().toString();
	}

}
